package com.wash.shoes.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @author zhengyunpeng
 * @since 2024-08-26
 */
@ApiModel(value = "商品的表")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("os_shop_goods")
public class ShopGoodsPo extends Model<ShopGoodsPo> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "无注释")
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "门店的id，后期可以单独到门店")
    private String shopId;

    @ApiModelProperty(value = "商品类型id")
    private String typeId;

    @ApiModelProperty(value = "销售的类型 1美团 2小程序 3抖音4 小红书")
    private String sellType;

    @ApiModelProperty(value = "app_sku_id")
    private String appSkuId;

    @ApiModelProperty(value = "商品的名称")
    private String name;

    @ApiModelProperty(value = "商品详情的图片")
    private String detailUrl;

    @ApiModelProperty(value = "轮播图")
    private String bannerUrl;

    @ApiModelProperty(value = "图片的URL")
    private String url;

    @ApiModelProperty(value = "商品的价格")
    private Double price;

    @ApiModelProperty(value = "商品的原价格")
    private Double oriPrice;

    @ApiModelProperty(value = "鞋子的数量")
    private Integer shoesNum;

    @ApiModelProperty(value = "销售的数量")
    private Integer salesNum;

    @ApiModelProperty(value = "类型 普洗 精洗  奢洗 干洗")
    private String washType;

    @ApiModelProperty(value = "状态0删除  1上架  2下架  ")
    private Integer status;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "扩展字段")
    private String extendInfo;

    @TableField(value = "create_by", fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建者")
    private String createBy;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @TableField(value = "update_by", fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新者")
    private String updateBy;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @TableField(value = "poid", fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "抖音店铺id")
    private String poId;
    @ApiModelProperty(value = "渠道")
    @TableField(exist = false)
    private String channel;
    @ApiModelProperty(value = "品牌id")
    @TableField(exist = false)
    private String brandId;

    @ApiModelProperty(value = "品牌名称")
    @TableField(exist = false)
    private  String brandName;
}
